<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- 导入css模版 -->
    <link rel="stylesheet" href="assets/lib/layui/css/layui.css">
    <!-- 导入自己的css文件 -->
    <link rel="stylesheet" href="assets/css/login.css">
    <title>Document</title>
</head>

<body>
    <!-- log展示 -->
    <div class="layui-main">
        <img src="assets/images/logo.png" alt="">
    </div>
    <!-- 绘制表单的布局 -->
    <div class="nav">
        <!-- 头部标题 -->
        <div class="nav-top"></div>
        <!-- 登陆表单 -->

        <form class="layui-form " action="" id="denglu">
            <!-- 账户 -->
            <div class="layui-form-zh">
                <!-- 字体图标 -->
                <i class="layui-icon">&#xe66f;</i>
                <input type="text" name="username" required lay-verify="required" placeholder="账户" autocomplete="off"
                    class="layui-input">
            </div>

            <!-- 密码 -->
            <div class="layui-form-zh">
                <!-- 字体图标 -->
                <i class="layui-icon">&#xe673;</i>
                <input type="text" name="password" required placeholder="密码" autocomplete="off" class="layui-input"
                    lay-verify="required|add">
            </div>

            <!-- 登陆按钮 -->
            <button type="submit" class="layui-btn layui-btn-fluid" id="btn" lay-submit>登陆</button>
            <!-- 注册链接 -->
            <div class="login-box">
                <a href="javascript:;" id="link_login">去注册</a>
            </div>
        </form>


        <!-- 注册表单 -->

        <form class="layui-form " action="" id="zhuce" style="display: none;">
            <!-- 账户 -->
            <div class="layui-form-zh">
                <input type="text" name="username" required lay-verify="required" placeholder="账户" autocomplete="off"
                    class="layui-input layui-form-zc">
            </div>
            <!-- 密码 -->
            <div class="layui-form-zh">
                <input type="text" name="password" required placeholder="密码" autocomplete="off"
                    class="layui-input layui-form-zc " lay-verify="required|add">
            </div>
            <!--  确认密码 -->
            <div class="layui-form-zh">
                <input type="text" name="title" required placeholder="确认密码" autocomplete="off"
                    class="layui-input layui-form-zc" lay-verify="required|add|abs">
            </div>

            <!-- 登陆按钮 -->
            <button type="submit" class="layui-btn layui-btn-fluid" id="btn" lay-submit>注册</button>
            <!-- 登陆链接 -->
            <div class="reg-box">
                <a href="javascript:;" id="link_reg" style="display: none;">去登陆</a>
            </div>
        </form>



    </div>
    <!-- 导入jq插件 -->
    <script src="assets/lib/jquery.js"></script>
    <!-- 导入layui插件 -->
    <script src="assets/lib/layui/layui.all.js"></script>
    <script src="assets/js/baseAPI.js"></script>
    <!-- 导入自己的js文件 -->
    <script src="assets/js/login.js"></script>
</body>

</html>